package com.hellomvp.client.activity;

import com.hellomvp.client.ClientFactory;
import com.google.gwt.activity.shared.AbstractActivity;
import com.google.gwt.event.shared.EventBus;
import com.google.gwt.user.client.ui.AcceptsOneWidget;
import com.hellomvp.client.ui.GoodbyeRightPanel;

public class RightPanelGoodbyeActivity extends AbstractActivity {
	private ClientFactory clientFactory;
	
	public RightPanelGoodbyeActivity(ClientFactory clientFactory) {
		this.clientFactory = clientFactory;
	}

	@Override
	public void start(AcceptsOneWidget panel, EventBus eventBus) {
		GoodbyeRightPanel goodByeRightPanel = clientFactory.getGoodbyeRightPanel();
		panel.setWidget(goodByeRightPanel.asWidget());
	}
}
